package com.xoa.service.attendance.schedule;

import com.xoa.model.attendance.AttendScheduleWithBLOBs;
import com.xoa.model.attendance.UserDuty;
import com.xoa.util.ToJson;

import java.util.List;


public interface AttendScheduleService {

    //获取主页数据
    public ToJson getAttendSchedule();

    //新增排班
    public ToJson insertAttendSchedule(AttendScheduleWithBLOBs attendScheduleWithBLOBs);

    //显示编辑
    public ToJson getAttendScheduleById(Integer asid);

    //编辑
    public ToJson updateAttendSchedule(AttendScheduleWithBLOBs attendScheduleWithBLOBs);

    //删除
    public ToJson deleteAttendSchedule(Integer asid );

    //停用，启用
    public ToJson updateAttendScheduleStatus(Integer asid );

    //自由排班查询
    public ToJson freedomScheduleQuery(String deptIds, String userIds,String date,Integer pageSize, Integer page, Boolean useFlag);

    //自由排班保存
    public ToJson freedomScheduleSave(List<String> userDutyList);

    //保存排班调度
    public ToJson saveUserDuty(AttendScheduleWithBLOBs attendScheduleWithBLOBs);

    //获得所有班次
    public ToJson getAttendSet();

}
